import axios from '@/utils/axios.js'
import {
	customApiBaseURL as baseURL
} from '@/config/index.js';


/**
 * 查询转派详情
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const queryWarnTransferRD = (data) => axios({
	method: 'get',
	header: {
		"isToken": false
	},
	data: data,
	url: baseURL + '/metaworks/vapp/stm/queryWarnTransferRD'
})


/**
 * 转派操作
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const warnTransferRecord = (data) => axios({
	method: 'post',
	header: {
		"isToken": false
	},
	data: data,
	url: baseURL + '/metaworks/vapp/stm/warnTransferRecord'
})

/**
 * 处理操作
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const handleWarnInfo = (data) => axios({
	method: 'post',
	header: {
		"isToken": false
	},
	data: data,
	url: baseURL + '/metaworks/vapp/stm/handleWarnInfo'
})


/**
 * 处理中操作
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const handlingWarnInfo = (data) => axios({
	method: 'post',
	header: {
		"isToken": false
	},
	data: data,
	url: baseURL + '/metaworks/vapp/stm/handlingWarnInfo'
})

/**
 * app意见反馈 / app联系方式收集
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const messageAdd = (data) => axios({
	method: 'post',
	header: {
		"isToken": true
	},
	data: data,
	url: baseURL + '/metaworks/eform-record/v1/data/add'
})

/**
 * app联系方式收集分页
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const messageQuery = (data) => axios({
	method: 'post',
	header: {
		"isToken": true
	},
	data: data,
	url: baseURL + '/metaworks/eform-record/v1/data/query'
})